import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import 'normalize.css'
import 'vant/es/toast/style'
import 'vant/es/dialog/style';
import 'vant/es/notify/style';
import 'vant/es/image-preview/style';
import { persistencePlugin } from './stores/plugins/persistencePlugin'

const app = createApp(App)
const pinia = createPinia()
pinia.use(persistencePlugin([{
  name: 'user',
  stateList: ['userid']
}]))

app.use(pinia)
app.use(router)
app.mount('#app')
